package com.wanmait.employment.webController;

import com.wanmait.employment.entity.FinancingStage;
import com.wanmait.employment.service.FinancingStageService;
import com.wanmait.employment.util.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("web/financingStage")
public class WebFinancingStageController {


    @Resource
    private FinancingStageService financingStageService;
    @GetMapping("financingStages")
    public AjaxResult financingStages(){
        List<FinancingStage> financingStages=financingStageService.findAll();

        return AjaxResult.success("success").put("financingStages",financingStages);

    }
}
